const mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');
var schema = new mongoose.Schema({ 
    name:String,
    parentId:String,
    goodstype:String,
    date:Date,
    price:Number,
    stock:Number,
    support:String,
    maked:String,
    sale:Array,
    import:Boolean,
    info:String,
   reply:String
    });
schema.plugin(mongoosePaginate);

var Product = mongoose.model('product', schema); // Model.paginate()

module.exports=Product;